import request from '@/axios/axios'
export async  function listone(query:any) {
  return request({
    url: 'detection_result',
    method: 'get',
    params: query,
  })
}

// 设备状态
export async function deviceState() {
  return request({
    url: 'device_state',
    method: 'get',
  })
}
// 统计信息
export async function overall() {
  return request({
    url: 'overall',
    method: 'get',
  })
}
// 设备列表
export async function devicelist() {
  return request({
    url: 'device_list',
    method: 'get',
  })
}
// 次数趋势
export async function plotdetection() {
  return request({
    url: 'plot_detection',
    method: 'get',
  })
}
// 缺陷数量提示
export async function plotdefect() {
  return request({
    url: 'plot_defect',
    method: 'get',
  })
}
// 最近检测结果
export async function recentresult() {
  return request({
    url: 'recent_result',
    method: 'post',
  })
}